package com.kaifamiao.modern;

import java.time.LocalTime;

public class LocalTimeTest3 {

	public static void main(String[] args) {
		
		LocalTime now = LocalTime.now();
		System.out.println( now );
		
		long ns = now.toNanoOfDay() ; 
		System.out.println( ns );
		
		int seconds = now.toSecondOfDay();
		System.out.println( seconds );
		
		System.out.println( now.getHour() );
		System.out.println( now.getMinute() );
		System.out.println( now.getSecond() );
		System.out.println( now.getNano() );
		
		LocalTime time = LocalTime.NOON ;
		
		System.out.println( time.isBefore( now ) );
		System.out.println( time.isAfter( now ) );
		
	}

}
